package router

import (
	"api-client/basic/api/hander"
	"api-client/pkg"
	"github.com/gin-gonic/gin"
)

func LoadRand(r *gin.Engine) {

	c := r.Group("v1")
	{
		c.POST("/sendSms", hander.SendSms)
		c.POST("/login", hander.Login)
		c.POST("/SyncGoods", hander.SyncGoods)
		c.POST("/search", hander.Search)
		c.POST("/list", hander.List)
		c.POST("/add", hander.Add)
		//c.POST("/oss", hander.Oss)
		c.POST("/createGood", hander.CreateGood)
		c.POST("/register", hander.Register)
		c.Use(pkg.JWTAuth("2210a"))
		c.GET("/chat", hander.Chat)
	}

}
